/**
 * Created by stylewolf on 2016/1/27.
 */
(function($){
    "use strict";
    juicer.set({
        'tag::operationOpen': '{@',
        'tag::operationClose': '}',
        'tag::interpolateOpen': '@{',
        'tag::interpolateClose': '}',
        'tag::noneencodeOpen': '##{',
        'tag::noneencodeClose': '}',
        'tag::commentOpen': '{#',
        'tag::commentClose': '}'
    });
    $.ajaxSettings.timeout=10000;
    $(document).on('ajaxStart', function(e, xhr, options){
        $("#alertBackground").show();
        $("#loading").show();
    });
    $(document).on('ajaxStop', function(e, xhr, options){
        $("#alertBackground").hide();
        $("#loading").hide();
    });
    $(document).on('ajaxError', function(e, xhr, options){
        var msg = "服务器连接失败！";
        switch(xhr.status){
            case 0 :
                break;
            default :
                break;

        }
    });
})(jQuery);